
#ifndef FILESENDINGDLG_H
#define FILESENDINGDLG_H

#pragma once
//#include "../define/DefineOICP.h"
/////////////////////////////////////////////////////////////////////////////
// FileSendingDlg dialog
#include "FileSendingBase.h"
class FileSendingDlg : public FileSendingBase
{
public:
	FileSendingDlg(CWnd* pParent = NULL);   // standard constructor

	void AdjustDlgRect(int n);
	void DoInitialize(DWORD dwIndex, CRect rt, DWORD dwY);
 
    void RequestSend(DWORD index);
    void RequestReceive(DWORD index);
	void OnBeginSend();
	void OnBeginReceive();

    void CloseSend();
    void CloseRecv();

	DWORD m_dwX, m_dwY, m_dwTop;
	CProgressCtrl	m_percent;
	CBrush m_Brush;
	COLORREF m_crStatic;

private:

	//{{AFX_DATA(FileSendingDlg)
	enum { IDD = IDD_FILE_SEND };
	//}}AFX_DATA
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(FileSendingDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(FileSendingDlg)
	afx_msg void OnTimer(UINT nIDEvent);
	virtual void OnCancel();
	afx_msg void FileReceivingComplete(WPARAM wParam, LPARAM lParam);
	afx_msg void FileSendingComplete(WPARAM wParam, LPARAM lParam);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnBtnSaveas();
	afx_msg void OnBtnDeny();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#endif // FILESENDINGDLG_H
